<script setup lang="ts">
import { getApiTest } from "@/api";
import { onMounted } from "vue";

const sin = "xia";
const env = import.meta.env;
console.log(env);
console.log(env.BASE_URL);

onMounted(() => {
  getTest();
});
const getTest = async () => {
  const loginForm = {
    username: "system",
    password: "111111",
  };
  const apiTest = await getApiTest(loginForm);
  console.log("==>" + apiTest);
};
</script>

<template>
  <h1>{{ sin + 1 }}</h1>
  <el-button type="primary">Primary</el-button>
  <el-icon>
    <Edit />
  </el-icon>
  <!--  获取环境变量-->
</template>

<style scoped></style>
